Description | Item script containers are an easy way to pre-define custom items for use within scripts. Item
scripts work with the ItemTag object, and can be fetched with the Object Fetcher by using the
ItemTag constructor ItemTag_script_name. Example: - drop <player.location> super_dooper_diamond
The following is the format for the container. Except for the 'material' key (and the dScript
required 'type' key), all other keys are optional.
Item_Script_Name:
type: item
material: base_material
mechanisms:
unbreakable: true
custom_model_data: 5
attribute_modifiers:
generic_armor:
1:
operation: add_number
amount: 5
slot: head
id: 10000000-1000-1000-1000-100000000000
display name: custom name
lore:
- item
- ...
durability: 12
enchantments:
- enchantment_name:level
- ...
allow in material recipes: false
flags:
my_flag: my value
recipes:
1:
type: shaped
recipe_id: my_custom_item_id
group: my_custom_group
output_quantity: 4
input:
- ItemTag|ItemTag|ItemTag
- ItemTag|ItemTag|ItemTag
- ItemTag|ItemTag|ItemTag
2:
type: shaped
input:
- ItemTag|ItemTag
- ItemTag|ItemTag
3:
type: shapeless
category: misc
input: ItemTag|...
4:
type: stonecutting
input: ItemTag
5:
type: furnace
cook_time: 1s
category: misc
experience: 5
input: ItemTag
6:
type: smithing
template: ItemTag
base: ItemTag
retain: display|enchantments
upgrade: ItemTag
7:
type: brewing
input: ItemTag
ingredient: ItemTag
no_id: true/false
book: book_script_name
|